package com.imvc.action;

import com.alibaba.fastjson.JSONObject;

/**
 * action返回的内容
 *
 * @author ml
 * @create 2017-10-18--10:28
 */
public class ResultContent {

    private String url;

    private Object obj;

    public ResultContent(String url){
        this.url = url;
    }

    public ResultContent(Object obj){
        this.obj = obj;
    }

    public String getUrl(){
        return url;
    }

    public String getJson(){
        return JSONObject.toJSONString(obj);
    }
}
